package com.totem.product.api;

import com.totem.base.model.Result;
import com.totem.product.vo.FundVO;
import com.totem.product.vo.SwitchAutoInvestVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;
import java.io.IOException;
import java.util.List;

@Tag(name="ITFundServiceApi", description="基金服务")
public interface ITFundServiceApi {
    //@PostMapping("/fund/list")
    //@ResponseBody
    //Result<List<FundVO>> list() throws IOException;

    @Operation(summary="开关:自动复投")
    @PostMapping("/fund/switchAutoInvest")
    @ResponseBody
    Result<Boolean> switchAutoInvest(@RequestBody @Valid SwitchAutoInvestVO switchAutoInvestVO) throws IOException;
}
